import useToastBehavior from '~/behaviors/useToast';

Page({
  data: {
    url: 'https://assistant.smallway.top/'
  },
  behaviors: [useToastBehavior],
  copyToClipboard(){
    wx.setClipboardData({
      data: this.data.url,
      success: () => {
        wx.showToast({
          title: '复制成功',
          icon: 'success'
        });
      }
    });
  },
  async onShow() {
  },
});
